//
//  CollectionViewCellOfThird.m
//  22-ALiStar
//
//  Created by Snow on 16/8/15.
//  Copyright © 2016年 Snow. All rights reserved.
//

#import "CollectionViewCellOfThird.h"

@interface CollectionViewCellOfThird ()
@property (nonatomic, strong) UIImageView *image;
@end
@implementation CollectionViewCellOfThird
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _labelOfTitle = [[UILabel alloc] init];
        _labelOfContent = [[UILabel alloc] init];
        _image = [[UIImageView alloc] init];
        [self.contentView addSubview:_image];
        [_image addSubview:_labelOfTitle];
        [_image addSubview:_labelOfContent];
        _image.frame = CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height);
        _labelOfTitle.frame = CGRectMake(0, _image.frame.size.height / 3, _image.frame.size.width, _image.frame.size.height / 6);
        _labelOfContent.frame = CGRectMake(0, _image.frame.size.height / 2 + 10, _image.frame.size.width, _image.frame.size.height / 6);
        _image.image = [UIImage imageNamed:@"pic_1"];
    }
    return self;
}

@end
